<include file="__THEME__/header" />
<link rel="stylesheet" href="../Public/poster.css" type="text/css" media="screen" charset="utf-8" />
<script  type="text/javascript" src="../Public/poster.js" ></script>
<script  type="text/javascript" src="__PUBLIC__/js/rcalendar.js" ></script>
<link href="__PUBLIC__/js/form_check/type.css" rel="stylesheet" type="text/css" />

<div class="content"><!-- 内容 begin  -->
  <include file="__THEME__/apps" />
  <div class="main"><!-- 画布 begin  -->
  <div class=page_title> <!-- page_title begin -->
  <h2><span class="right fn f12px"><a href="javascript:history.back( -1 )">返回上一页</a></span><img src="{$icopath}{$ico}" />发起{$name}</h2>
   <div style="padding-left:29px"><span class="cGray2">{$explain}</span></div>
  <div class="c"></div>
</div><!-- page_title end -->
  <div class="groupBox">
    <div class="boxL" style="width:640px;">
    <div>
     
    </div>
  	<div class="box1">
  	<php>if(!empty($smallType)){
  	  $hasType = "true";
  	}</php>
      <form method="post" action="__URL__/doAddPoster"  enctype="multipart/form-data" onsubmit="return check({$hasType})">
        <ul class="add_event">
       	  <li>
       	    <div class="c1">标题：<span class="cRed pr5">*</span></div>
       	    <div class="c2"><input name="title" type="text" style="width:200px;" class="TextH20" id="title" onfocus="this.className='Text2'" onblur="this.className='TextH20'" maxlength="60" />
       	    </div></li>
          <li><div class="c1"> 地点：<span class="cRed pr5">*</span></div>
            <div class="c2">
                        <input type="text" class="TextH20" style="width:200px;" onfocus="this.className='Text2'" onblur="this.className='TextH20'" value="{$userInfo.area}" name="areaval" disabled  id="areaval" />
                        <input type="button" class="btn_b" value="选择地区" selectArea="true" level="2" areatype="areaval" >
                        <input type="hidden" name="ts_areaval" id="ts_areaval" value="{$userInfo.ts_areaval}"/>
           </div>
            
          </li>
          <php>if(!empty($smallType)){</php>
          <li>
            <div class="c1"> {$type}：<span class="cRed pr5">*</span></div>
            <div class="c2">
              <select name="type" id="type">
                <option value="0" selected>请选择分类</option>
                      				<?php foreach($smallType as $cate){ ?>
                                         <option value="{$cate.id}">{$cate.name}</option>
                                         <?php } ?>
                </volist>
              </select>
            </div>
          </li>
          <php>}</php>
          <li><div class="c1"> 截止时间：<span class="cRed pr5">*</span></div>
            <div class="c2"> <input id="deadline" name="deadline" type="text" class="TextH20" id="deadline" onfocus="this.className='Text2';rcalendar(this,'full');" id="deadline" onblur="this.className='TextH20'" readonly /> </div>
          </li>
          
          <li><div class="c1">详细介绍：<span class="cRed pr5">*</span></div><div class="c2">
          {:W("Edit",array('smileList'=>$smileList,'smilePath'=>$smilePath,'cols'=>60,'rows'=>20,'name'=>'explain','id'=>'explain'))}
          
          </div></li>
          <volist name="extraField" id="vo">
            {:W($vo['widget'],$vo)}
          </volist>
          <li>
            <div class="c1">联系方式：&nbsp;&nbsp;&nbsp;</div>
            <div class="c2">
              <input name="contact" type="text" class="TextH20" id="contact" onfocus="this.className='Text2'" onblur="this.className='TextH20'" size="30" />
              <br /><span class="cGray2">填写联系人电话，如：张小姐，1346665XXXX            </span></div>
          </li>
      
          <li>
            <div class="c1">选项：&nbsp;&nbsp;&nbsp;</div>
            <div class="c2">
              <label>
              <input type="checkbox" name="friend" id="choice1" value="1" />
只允许好友可见</label><br />
              <label>
              <input type="checkbox" name="feed" checked="choice1" value="1" />发送动态</label>
              
            </div>
          </li>
          <li>
            <div class="c1">图片：&nbsp;&nbsp;&nbsp;</div>
            <div class="c2"> <input name="cover" type="file" />
     
            </div>
          </li>
          <li>
                  <div class="c1">将图片上传到：&nbsp;&nbsp;&nbsp;</div> 
               <div class="c2">
            {:W('AlbumList',array( 'uid'=>$mid , 'form_name'=>'albumId' , 'selected'=>intval($_GET['albumId']) ) )}
            </div>
          </li>
          <li>
            <div class="c1">&nbsp;</div>
            <div class="c2">
                                    <input type="hidden" name="pid"  value="{$id}"/>
              <input name="button" type="submit" class="btn_b" id="button" value="确认发起" />
              </div>
          </li>
        </ul>
        </form>
    </div>
    </div> <!-- end  -->
 </div>
  </div><!-- 画布 end  -->
  <div class="c"></div>
</div><!-- 内容 end -->
{:W('Network')}
<include file="__THEME__/footer" />



